package com.example.demo.service;

import com.example.demo.config.base.DataService;
import com.example.demo.model.SysUser;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;

public interface SysUserService extends DataService<SysUser, Integer> {
    @Override
    default Page<SysUser> findAll(Integer page, Integer size, String sortDirection){
        return this.findAll(page, size, sortDirection, "user_id");
    }

    @Override
    default Page<SysUser> findAll(Example<SysUser> example, Integer page, Integer size, String sortDirection){
        return this.findAll(example, page, size, sortDirection, "user_id");
    }
}
